<template>
	<view class="dosage-slot">
		<view class="header" v-for="item in goods" :key="item.typeValue">
			{{ item.typeValue }}
			<span v-if="item.typeValue">：</span>
			<text>{{ item.num }}</text>
		</view>
	</view>
</template>

<script setup lang="ts">
defineProps<{
	goods: any[];
}>();
</script>

<style scoped>
.dosage-slot {
	font-size: 28rpx;
}
.header {
	margin-bottom: 12rpx;
}
</style>
